package com.crmapi.mapper;

import com.crmapi.pojo.PageBean;
import com.crmapi.pojo.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ProductMapper {

    //保存产品
    int save(Product product);

    //批量删除
    int delete(List<String> ids);

    //更新产品
    int update(Product product);

    //条件查询
    List<Product>queryList(String code,String name,Double price,Integer num,Integer status,String note);

    //查询全部产品
    List<Product> queryAll();
}
